{% extends "videos/base.html" %}

{% load i18n %}
{% load humanize %}
{% load pagination_tags %}
{% load tagging_tags %}
{% load wiki %}
{% load markup %}
{% load switchcase %}
{% load restructuredtext %}
{% load threadedcommentstags %}

{% block head_title %}{% blocktrans %}Friends' Videos{% endblocktrans %}{% endblock %}

{% block body %}
    
    <h1>{% blocktrans %}Friends' Videos{% endblocktrans %}</h1>
    
    {% if object_list %}
        {% autopaginate object_list 24 %}
        <div class="thumb-row clearfix">
            {% for video in object_list %}
                <div class="gallery-video-thumb">
                    <a href="{% url video_details video.id %}"><img src="{{ video.image.get_thumbnail_url }}" alt="{{ video.title }}"/></a><br />
                    from <a href="{% url profiles.views.profile video.member.username %}">{{ video.member.username }}</a><br />
                    <img src="/site_media/comment.png" border="0" class="noborder" align="absmiddle" /><a href="{% url video_details video.id %}/#videocomments">{% get_comment_count for video as commentcount %} {{ commentcount }} Comments</a><br />
                    Viewed {{ video.view_count }} times
                </div>
            {% endfor %}
        </div>
        {% paginate %}
    {% else %}
        <p>No videos were found.</p>
    {% endif %}
    
{% endblock %}
